/**
 * 
 */
	var image=function()
  {
	document.getElementsByTagName('img')[0].setAttribute('src','DispatchAction?method=getImage&id='+Math.random()*10);
  } ;
	
	var send=function (name,sId)
	{
		 var title=document.getElementById("title").value;
		 var content= document.getElementById("content").value;
		 var verify= document.getElementById("verify").value;
		 $.ajax({
	    	 type: "POST",
	     	 url: "DispatchAction?method=topicVerify",
	       data:"name="+name+"&sId="+sId+"&title="+title+"&content="+content+"&verify="+verify,
	       success: function(msg){
	    	   if(msg=="verityfalse"){
	    		   alert("验证码错误!");}
	    	   else if(msg=="false")
	    		   {alert("发表失败!");}
	    	   		else{  alert("发表成功!");window.location.href="DispatchAction?method=inSearchTopicList&id="+msg+"";}
	    	   
	       }
	    });
		
	};